
function deleteOrder(btn, id) {
	if (window.confirm("You are going to delete the order[id:" + id + "],Are you sure?")) {
		var targetUrl = context_path + "/manage/order/deleteOrder.do";
		var params = {id:id};
		$(btn).attr("disabled", true);
		$.ajax({url:targetUrl, type:"GET", data:(params), success:function (content) {
			$(btn).parent().parent().hide();
		}});
	}
}
function cancelOrder(btn, id) {
	if (window.confirm("You are going to cancel the order[id:" + id + "],Are you sure?")) {
		var targetUrl = context_path + "/manage/order/cancelOrder.do";
		var params = {id:id};
		$(btn).attr("disabled", true);
		$.ajax({url:targetUrl, type:"GET", data:(params), success:function (content) {
			$(btn).parent().parent().hide();
		}});
	}
}

